// 最新资讯
$(function() {
	$.ajax({
		url: 'http://localhost:8080/api/v1/index/latest',
		dataType: 'json',
		success: function(res) {
			console.log(res);
			let html = template('news', res);
			$('.common_news').html(html);
		}
	});
	// 热点图
	$.ajax({
		url: 'http://localhost:8080/api/v1/index/hotpic',
		dataType: 'json',
		success: function(res) {
			console.log(res);
			let html = template('hotpicTemp', res);
			$('.focus_list').html(html);
		}
	});
});
